package com.killer.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.killer.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 标准产品单位表
 * </p>
 *
 * @author killer
 * @since 2021-08-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_spu")
@ApiModel(value="Spu对象", description="标准产品单位表")
public class Spu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "货号")
    @TableField("sn")
    private String sn;

    @ApiModelProperty(value = "SPU名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "副标题")
    @TableField("caption")
    private String caption;

    @ApiModelProperty(value = "品牌ID")
    @TableField("brand_id")
    private Long brandId;

    @ApiModelProperty(value = "一级分类")
    @TableField("category1_id")
    private Long category1Id;

    @ApiModelProperty(value = "二级分类")
    @TableField("category2_id")
    private Long category2Id;

    @ApiModelProperty(value = "三级分类")
    @TableField("category3_id")
    private Long category3Id;

    @ApiModelProperty(value = "模板ID")
    @TableField("template_id")
    private Long templateId;

    @ApiModelProperty(value = "运费模板id")
    @TableField("freight_id")
    private Long freightId;

    @ApiModelProperty(value = "图片")
    @TableField("image")
    private String image;

    @ApiModelProperty(value = "图片列表")
    @TableField("images")
    private String images;

    @ApiModelProperty(value = "售后服务")
    @TableField("sale_service")
    private String saleService;

    @ApiModelProperty(value = "介绍")
    @TableField("introduction")
    private String introduction;

    @ApiModelProperty(value = "规格列表")
    @TableField("spec_items")
    private String specItems;

    @ApiModelProperty(value = "参数列表")
    @TableField("para_items")
    private String paraItems;

    @ApiModelProperty(value = "销量")
    @TableField("sale_num")
    private Integer saleNum;

    @ApiModelProperty(value = "评论数")
    @TableField("comment_num")
    private Integer commentNum;

    @ApiModelProperty(value = "是否上架")
    @TableField("is_marketable")
    private Boolean isMarketable;

    @ApiModelProperty(value = "是否启用规格")
    @TableField("is_enable_spec")
    private Boolean isEnableSpec;

    @ApiModelProperty(value = "审核状态")
    @TableField("status")
    private Integer status;


}
